/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.AliasFacade;
import org.ipti.br.tag.entity.Alias;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author ipti
 */
@Stateless
public class AliasBO {

    @Inject
    private AliasFacade aliasDAO;

    public AliasFacade getAliasDAO() {
        return aliasDAO;
    }

    public void create(Alias alias) {
        getAliasDAO().create(alias);
    }

    public void edit(Alias alias) {
        getAliasDAO().edit(alias);
    }

    public void remove(Alias alias) {
        getAliasDAO().remove(alias);
    }

    public Alias find(Object id) {
        return getAliasDAO().find(id);
    }

    public List<Alias> findAll() {
        return getAliasDAO().findAll();
    }

    public void editForSynchronization(Alias alias) {
        getAliasDAO().editForSynchronization(alias);
    }

    public List<Alias> findAllOrder() {
        return getAliasDAO().findAllOrder();
    }
}
